<template>
  <view class="bsnl_btn">
    <button class="btn" :class="disable?'disableColor':'activeColor'" type="default" @click="click">{{val}}</button>
  </view>
</template>

<script>
  export default {
    props: {
      disable: {
        type: Boolean,
        default: false
      },
      val: {
        type: String,
        default: ''
      }
    },
    methods: {
      click() {
        this.$emit('click')
      }
    }
  }
</script>

<style>
  .disableColor {
    background-image: none;
    background-color: #DDDDDD !important;
  }
  .activeColor {
    background-image: linear-gradient(to right, #020102, #323140);
  }
  .btn {
    color: #fff !important;
    border-radius: 5rpx;
    border: none;
    margin: 20px;
    height: 88rpx;
    font-size: 26rpx;
    display: flex;
    justify-content: center;
    align-items: center;
  }
</style>
